package a66weding.com.jiehuntong.widgets.quicksearchlist;

import android.widget.ListView;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.util.AttributeSet;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.widget.ListAdapter;

public class ContactListView extends ListView
{

	protected boolean mIsFastScrollEnabled = false;
	protected GestureDetector mGestureDetector = null;

	protected boolean inSearchMode = false; // whether is in search mode
	protected boolean autoHide = false; // alway show the scroller

	public ContactListView(Context context, AttributeSet attrs)
	{
		super(context, attrs);
	}

	public ContactListView(Context context, AttributeSet attrs, int defStyle)
	{
		super(context, attrs, defStyle);
	}

	@Override
	public boolean isFastScrollEnabled()
	{
		return mIsFastScrollEnabled;
	}



	@Override
	public void setFastScrollEnabled(boolean enabled)
	{
	}

	@Override
	public void draw(Canvas canvas)
	{
		super.draw(canvas);



	}

	@Override
	public boolean onTouchEvent(MotionEvent ev)
	{
		return super.onTouchEvent(ev);
	}

	@Override
	public boolean onInterceptTouchEvent(MotionEvent ev)
	{
		return true;
	}

	@Override
	public void setAdapter(ListAdapter adapter)
	{
		super.setAdapter(adapter);
	}

	@Override
	protected void onSizeChanged(int w, int h, int oldw, int oldh)
	{
		super.onSizeChanged(w, h, oldw, oldh);
	}

	public boolean isInSearchMode()
	{
		return inSearchMode;
	}

	public void setInSearchMode(boolean inSearchMode)
	{
		this.inSearchMode = inSearchMode;
	}

}
